package com.pen.changgou.goods.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/****
 * @Author:admin
 * @Description:Sku构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "Sku", value = "Sku")
@Data
@TableName("tb_sku")
public class Sku implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "商品id", required = false)
    private Long id;//商品id
    @ApiModelProperty(value = "商品条码", required = false)
    @TableField("sn")
    private String sn;//商品条码
    @ApiModelProperty(value = "SKU名称", required = false)
    @TableField("name")
    private String name;//SKU名称
    @ApiModelProperty(value = "价格（分）", required = false)
    @TableField("price")
    private Integer price;//价格（分）
    @ApiModelProperty(value = "库存数量", required = false)
    @TableField("num")
    private Integer num;//库存数量
    @ApiModelProperty(value = "库存预警数量", required = false)
    @TableField("alert_num")
    private Integer alertNum;//库存预警数量
    @ApiModelProperty(value = "商品图片", required = false)
    @TableField("image")
    private String image;//商品图片
    @ApiModelProperty(value = "商品图片列表", required = false)
    @TableField("images")
    private String images;//商品图片列表
    @ApiModelProperty(value = "重量（克）", required = false)
    @TableField("weight")
    private Integer weight;//重量（克）
    @ApiModelProperty(value = "创建时间", required = false)
    @TableField("create_time")
    private LocalDateTime createTime;//创建时间
    @ApiModelProperty(value = "更新时间", required = false)
    @TableField("update_time")
    private LocalDateTime updateTime;//更新时间
    @ApiModelProperty(value = "SPUID", required = false)
    @TableField("spu_id")
    private Long spuId;//SPUID
    @ApiModelProperty(value = "类目ID", required = false)
    @TableField("category_id")
    private Long categoryId;//类目ID
    @ApiModelProperty(value = "类目名称", required = false)
    @TableField("category_name")
    private String categoryName;//类目名称
    @ApiModelProperty(value = "品牌名称", required = false)
    @TableField("brand_name")
    private String brandName;//品牌名称
    @ApiModelProperty(value = "规格", required = false)
    @TableField("spec")
    private String spec;//规格
    @ApiModelProperty(value = "销量", required = false)
    @TableField("sale_num")
    private Integer saleNum;//销量
    @ApiModelProperty(value = "评论数", required = false)
    @TableField("comment_num")
    private Integer commentNum;//评论数
    @ApiModelProperty(value = "商品状态 1-正常，2-下架，3-删除", required = false)
    @TableField("status")
    private String status;//商品状态 1-正常，2-下架，3-删除


}
